
<h3>Add New Project</h3>
<h4>Fill out the form below to add a new project.</h4>
<form id="add-project" method="post" name="add-project" action="../inc/process-addproject.php">
	<fieldset>
		<legend>Project Information</legend>
		<label for="c_id">Who is the client? </label><br />
		<select name="c_id" id="c_id">
			<option value="">Choose One...</option>
		<?php 
		$query = "SELECT c_id,fname,lname FROM clients";
		$page = mysql_query($query) or die(mysql_error());
		while($row = mysql_fetch_array($page)){
			echo '<option value="'.$row['c_id'].'">'.$row['lname'].' '.$row['fname'].'</option>'."\n";
		}
		?>
		</select><br />
		<label for="p_title">Project Title: </label>
		<br />
		<input type="text" name="p_title" id="p_title" class="text" size="20" />
		<br />
		<label for="p_url">Project URL:</label>
		<br />
		<input type="text" name="p_url" id="p_url" class="text" size="20" />
		<br />
		<label for="type">Type of Project:</label>
		<br />
		<select name="cat_id" id="cat_id">
			<option value="">Choose One...</option>
		<?php 
		$query = "SELECT * FROM project_category";
		$page = mysql_query($query) or die(mysql_error());
		while($row = mysql_fetch_array($page)){
			echo '<option value="'.$row['cat_id'].'">'.$row['cat_title'].'</option>'."\n";
		}
		?>
		</select>
		<br />
	</fieldset>
	<fieldset>
		<legend>FTP Information</legend>
		<label for="ftp_address">FTP Address:</label>
		<br />
		<input type="text" name="ftp_address" id="ftp_address" class="text" size="20" />
		<br />
		<label for="ftp_username">FTP Username:</label>
		<br />
		<input type="text" name="ftp_username" id="ftp_username" class="text" size="20" />
		<br />
		<label for="ftp_password">FTP Password: </label>
		<br />
		<input type="text" name="ftp_password" id="ftp_password" class="text" size="20" />
		<br />
	</fieldset>
	<fieldset>
		<legend>Hosting Information</legend>
		<label for="host_name">Hosting Company:</label>
		<br />
		<input type="text" name="host_name" id="host_name" class="text" size="20" />
		<br />
		<label for="host_address">Hosting Address:</label>
		<br />
		<input type="text" name="host_address" id="host_address" class="text" size="20" />
		<br />
		<label for="host_username">Hosting User: </label>
		<br />
		<input type="text" name="host_username" id="host_username" class="text" size="20" />
		<br />		
		<label for="host_password">Hosting Password: </label>
		<br />
		<input type="text" name="host_password" id="host_password" class="text" size="20" />
		<br />
	</fieldset>
	<fieldset>
		<legend>Add Client Pages (optional for now)</legend>
		<label for="page">Page Name <i>(Example: About, Home, Info, Products, Contact)</i>:</label>
		<br />
		<input type="text" name="page" id="page" class="text" size="20" />
	</fieldset>
	<button type="submit" class="button positive"> <img src="../images/icons/tick.png" alt=""/> Add Project </button>
</form>

        
        <br />
<div class="success" style="display:none;">
	Project has been added.
</div>
